package com.changwu.cwbase.ui.commont;

import android.content.Intent;
import android.view.View;

import com.changwu.cwbase.Constants;
import com.changwu.cwbase.R;
import com.changwu.cwbase.base.BaseWebActivity;


/**
 * 通用webview
 * Created by cenxiaozhong on 2017/5/22.
 * <p>
 */

public class CommonWebActivity extends BaseWebActivity implements View.OnClickListener {
    private String mTitle;
    private String mUrl;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_web;
    }


    /**
     * 访问的地址
     *
     * @return
     */
    @Override
    public String getUrl() {
        return mUrl;
    }

    @Override
    public void initToolBar() {
        super.initToolBar();
        Intent intent = getIntent();
        mTitle = intent.getStringExtra(Constants.TITLE);
        mUrl = intent.getStringExtra(Constants.URL);
        title.setText(mTitle);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
        }
    }


}
